package com.imooc.ResultEnum;

/**
 * Created by chenxin on 2017/4/30.
 */
public enum ResultBoyEnum {
    ERROR(90000, "参数错误"),
    RUNEXCEPTION(88888, "系统异常"),
    SUCCESS(000000, "成功"),
    ERRORSAVEONE(1001001, "参数不能为空"),
    GRRL_ERROR(100, "太小了，好好学习"),
    GRRL_ERRORLOVE(101, "谈恋爱的好时候");

    private Integer code;
    private String message;

    ResultBoyEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
